package com.zrwl.poscloud.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zrwl.poscloud.base.superI.SuperEntity;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@TableName("t_menus")
public class Menus extends SuperEntity<Menus> implements Comparable<Menus> {
    private static final long serialVersionUID = 1L;
    private String name;
    private int menuType;
    private String summary;
    private String icon;
    private String superUid;
    private String url;
    private int sort;
    private int isShow;
    private int isJumpExternalUrl;
    private Integer localMode;

    @Override
    public int compareTo(Menus o) {

        if (this.sort >= o.getSort()) {
            return -1;
        }
        return 1;
    }

}
